package fr.uniscol.siecle.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class FichierSTS extends FichierSIECLE implements Serializable {

	private String annee_scolaire = null;
	
	private String debut_annee_scolaire = null;
	
	private String fin_annee_scolaire = null;
	
	private List<TypeAHE> typesAHE = null;
	
	private List<Civilite> civilites = null;
	
	private List<MEFSTAT4> mefsStat4 = null;
	
	// Tx POND 
	
	private List<ModaliteCours> modalitesCours = null;
	
	private List<Matiere> matieres = null;
	
	private List<MEF> mefs = null;
	
	private List<ProgrammeSTS> programmes = null;
	
	private List<Individu> individus= null;
	
	private List<Division> structures = null;

	public String getAnnee_scolaire() {
		return annee_scolaire;
	}

	public void setAnnee_scolaire(String annee_scolaire) {
		this.annee_scolaire = annee_scolaire;
	}

	public String getDebut_annee_scolaire() {
		return debut_annee_scolaire;
	}

	public void setDebut_annee_scolaire(String debut_annee_scolaire) {
		this.debut_annee_scolaire = debut_annee_scolaire;
	}

	public String getFin_annee_scolaire() {
		return fin_annee_scolaire;
	}

	public void setFin_annee_scolaire(String fin_annee_scolaire) {
		this.fin_annee_scolaire = fin_annee_scolaire;
	}

	public List<TypeAHE> getTypesAHE() {
		return typesAHE;
	}

	public void setTypesAHE(List<TypeAHE> typesAHE) {
		this.typesAHE = typesAHE;
	}

	public List<Civilite> getCivilites() {
		return civilites;
	}

	public void setCivilites(List<Civilite> civilites) {
		this.civilites = civilites;
	}

	public List<MEFSTAT4> getMefsStat4() {
		return mefsStat4;
	}

	public void setMefsStat4(List<MEFSTAT4> mefsStat4) {
		this.mefsStat4 = mefsStat4;
	}

	public List<ModaliteCours> getModalitesCours() {
		if(modalitesCours == null){
			modalitesCours = new ArrayList<ModaliteCours>();
		}
		return modalitesCours;
	}

	public void setModalitesCours(List<ModaliteCours> modalitesCours) {
		this.modalitesCours = modalitesCours;
	}

	public List<Matiere> getMatieres() {
		if(matieres == null){
			matieres = new ArrayList<Matiere>();
		}
		return matieres;
	}

	public void setMatieres(List<Matiere> matieres) {
		this.matieres = matieres;
	}

	public List<MEF> getMefs() {
		return mefs;
	}

	public void setMefs(List<MEF> mefs) {
		this.mefs = mefs;
	}

	public List<ProgrammeSTS> getProgrammes() {
		if(programmes == null){
			programmes = new ArrayList<ProgrammeSTS>();
		}
		return programmes;
	}

	public void setProgrammes(List<ProgrammeSTS> programmes) {
		this.programmes = programmes;
	}

	public List<Individu> getIndividus() {
		if(individus == null){
			individus = new ArrayList<Individu>();
		}
		return individus;
	}

	public void setIndividus(List<Individu> individus) {
		this.individus = individus;
	}

	public List<Division> getStructures() {
		if(structures == null){
			structures = new ArrayList<Division>();
		}
		return structures;
	}

	public void setStructures(List<Division> structures) {
		this.structures = structures;
	}

	public Individu findIndividu(String id) {
		for(Individu i : getIndividus()){
			if(i.getId().equalsIgnoreCase(id)){
				return i;
			}
		}
		return null;
	}
}
